#include <stdio.h>
#include <signal.h>

void handler(int sig)
{
    printf("Handler called for signal %d\n", sig);
}

int main()
{
    signal(SIGINT, handler);
    raise(SIGINT);
    return 0;
}